package com.lanhe.game.sysAppUser.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lanhe.game.sysAppUser.domain.SysAppUser;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * app用户登录Mapper接口
 * 
 * @author tianliang
 * @date 2024-01-22
 */
@Repository
public interface SysAppUserMapper extends BaseMapper<SysAppUser>
{
    /**
     * 查询app用户登录
     * 
     * @param appUserId app用户登录主键
     * @return app用户登录
     */
    public SysAppUser selectSysAppUserByAppUserId(Long appUserId);

    /**
     * 查询app用户登录列表
     * 
     * @param sysAppUser app用户登录
     * @return app用户登录集合
     */
    public List<SysAppUser> selectSysAppUserList(SysAppUser sysAppUser);

    /**
     * 新增app用户登录
     * 
     * @param sysAppUser app用户登录
     * @return 结果
     */
    public int insertSysAppUser(SysAppUser sysAppUser);

    /**
     * 修改app用户登录
     * 
     * @param sysAppUser app用户登录
     * @return 结果
     */
    public int updateSysAppUser(SysAppUser sysAppUser);

    /**
     * 删除app用户登录
     * 
     * @param appUserId app用户登录主键
     * @return 结果
     */
    public int deleteSysAppUserByAppUserId(Long appUserId);

    /**
     * 批量删除app用户登录
     * 
     * @param appUserIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysAppUserByAppUserIds(Long[] appUserIds);

    SysAppUser selectSysAppUserByOpenId(String openId);

}
